home *** CD-ROM | disk | FTP | other *** search
- #include "stddefs.h"
- #ifndef YAKSTICK.H
- #define YAKSTICK.H
-
- extern int jsense;
- extern int jrange;
-
- class yakStick //joystick class object!
- {
- public:
- byte stickNumber;
- int x, y;
- byte button1, button2;
- yakStick(byte number) {stickNumber = number; x=y=0; button1=button2=0; jsense = 10; jrange = 200;};
- int read(void);
- int readX(void);
- int readY(void);
- byte readButton1(void);
- byte readButton2(void);
- };
-
- #ifndef YAKSTICKUNIT
- extern yakStick joystick1(1);
- extern yakStick joystick2(2);
- #endif
-
- #endif